package com.smedi.ismedi.authoritymanagement.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "ath_account_basic")
public class AccountBasicEntity extends BasicFieldEntity implements Serializable {
    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "password")
    private String password;

    @TableField(value = "mobile")
    private String mobile;

    @TableField(value = "enable")
    private boolean enable;

    @TableField(value = "first")
    private boolean first;

    @TableField(value = "user_key")
    private String userKey;

    @TableField(value = "person_id")
    private Long personId;

    @TableField(value = "is_admin")
    private boolean admin;

    @TableField(value = "client_id")
    private String clientId;
}
